var express = require('express');
var router = express.Router();

var {Zzymodel}  = require('../model/zzy')

router.get('/zzy',async(req,res)=>{
  const zzydata = await Zzymodel.find()
  res.send({
    code:200,
    msg:"请求成功",
    zzydata
  }) 
})

module.exports = router